package com.ruoyi.am.domain;

import com.alibaba.fastjson.JSONObject;

public class AmRes{

    private int status;
    private String result;
    private String message;

    public AmRes() {
    }

    public AmRes(int status, String result, String message) {
        this.status = status;
        this.result = result;
        this.message = message;
    }

    public <T> T toJavaObject(Class<T> clazz) {
        JSONObject object=JSONObject.parseObject(this.result);
        return JSONObject.toJavaObject(object, clazz);
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
